import { title } from '@/config';

export const getPageTitle = (pageTitle, mainTitle) => {
    document.title = pageTitle ? `${pageTitle} - ${mainTitle || title}` : `${title}`;
};
export const getPageIcon = (url) => {
    const favicon = document.querySelector('link[rel="icon"]');
    if (favicon) favicon.href = url;
};
